<?php
    class NewTemplate extends ContentText
    {
        public function changeTemplate()
        {
            if(!empty($this->arrData['template']))
            {
                $tpl = $this->Template = new FrontendTemplate($this->arrData['template']);
                return $tpl;
            }
        }
        
        protected function compile() {
            $this->changeTemplate();
            parent::compile();
        }
    }
?>